<template>
  <!-- <keep-alive :exclude="excludePages"> -->
    <router-view />
  <!-- </keep-alive> -->
</template>

<script>
export default {
  mounted() {
    //将要给原生调用的方法挂载到 window 上面
    // window.callJsFunction = this.callJsFunction;
    // this.$store.commit("init");
  },
  data() {
    return {
      excludePages: ["Search", "Home"],
      msg: "哈哈",
    };
  },
  methods: {
    callJsFunction(str) {
      this.msg = "我通过原生方法改变了文字" + str;
      return "js调用成功";
    },
  },
};
</script>
